﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Forum.Entity.Post;

namespace Forum.Entity.Board
{
    public partial class BoardInfo
    {
        /// <summary>
        /// 今日发贴数
        /// </summary>
        public int TodayPosts
        {
            get;
            set;
        }

        public Func<int, List<TopicTypeInfo>> GetTitleTypes;
        private List<TopicTypeInfo> _types;
        public List<TopicTypeInfo> Types
        {
            get
            {
                if (_types == null && GetTitleTypes != null)
                {
                    _types = GetTitleTypes(this.ID);
                }
                return _types;
            }
            set
            {
                _types = value;
            }
        }

    }
}
